package com.atguigu.yygh.hosp;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
//即使引入了依赖 启动时若不加扫描 则无法加载其他项目/模块下的(配置)类
@ComponentScan(basePackages = {"com.atguigu"})
@EnableDiscoveryClient
//开启远程调用 不同模块调用需要加扫描包
@EnableFeignClients(basePackages = {"com.atguigu"})
public class ServiceHospApplication {
    public static void main(String[] args) {
        SpringApplication.run(ServiceHospApplication.class,args);
    }
}
